file(GLOB_RECURSE _PYNATIVE_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "base.cc" "pynative_execute.cc")

if (ENABLE_GE)
    file(GLOB_RECURSE _GE_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "pynative_execute_ge.cc")
    list(APPEND _PYNATIVE_SRC_LIST ${_GE_SRC_LIST})
endif ()

add_library(_mindspore_pynative_obj OBJECT ${_PYNATIVE_SRC_LIST})
